import java.io.Serializable;

/*this class is a single music file to be open from the Project's data folder*/
public class MusicFile implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int fileNum; //the num of the file as saved in the library
	private String name; //the name of the song
	private MusicItem music; //the actual music saved
	
	public MusicFile(){
		this.fileNum = 0;
		this.name = "";
		this.music = new MusicItem();
	}
	
	public MusicFile(int fileNum, String name, MusicItem music){
		this.fileNum = fileNum;
		this.name = name;
		this.music = music;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public MusicItem getMusic() {
		return music;
	}

	public void setMusic(MusicItem music) {
		this.music = music;
	}

	public void setFileNum(int fileNum) {
		this.fileNum = fileNum;
	}
	
	public String ToString(){
		return "" + this.fileNum + " " + this.name + " " + this.music.toString();
	}

	
	

	
	
}
